package com.aspose.cells;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

class zbkr implements zbfn {
   boolean a;
   private zbly r;
   private int s;
   private int t;
   private boolean u;
   private Workbook v;
   private Worksheet w;
   private zacd x;
   private int y;
   private int z;
   private int A;
   private int B;
   private float C;
   private float D;
   private float E;
   private float F;
   private float G;
   private float H;
   private int I;
   private zvn J;
   private zalz K;
   private com.aspose.cells.b.a.b.zg L;
   private Color M;
   private int N;
   private int O;
   private int P;
   private int Q;
   private int R;
   private boolean S;
   private float T;
   private float U;
   private float V;
   private float W;
   private zanz X;
   private com.aspose.cells.b.a.b.zq Y;
   private com.aspose.cells.b.a.b.a.ze Z;
   private zbcy aa;
   private zbsn ab;
   private String ac;
   private ArrayList ad;
   private com.aspose.cells.b.a.b.zo ae;
   private int af;
   private List ag;
   private List ah;
   private String ai;
   private int aj;
   private boolean ak;
   private boolean al;
   private double am;
   private int an;
   private int ao;
   private int ap;
   public int b;
   public ArrayList c;
   public zbkr d;
   public boolean e;
   public boolean f;
   boolean g;
   public boolean h;
   public Chart i;
   public Shape j;
   public com.aspose.cells.b.a.b.zo k;
   public com.aspose.cells.b.a.b.zo l;
   private com.aspose.cells.b.a.b.zq aq;
   private com.aspose.cells.b.a.b.zq ar;
   private boolean as;
   private static HashMap at = new HashMap();
   public zaci m;
   private zn au;
   private com.aspose.cells.b.a.b.zi av;
   private boolean aw;
   boolean n;
   short o;
   boolean p;
   boolean q;

   void a(boolean var1) {
      this.u = var1;
   }

   Workbook a() {
      return this.v;
   }

   void a(Workbook var1) {
      this.v = var1;
   }

   void a(Worksheet var1) {
      this.w = var1;
   }

   zacd b() {
      return this.x;
   }

   void a(zacd var1) {
      this.x = var1;
   }

   int c() {
      return this.y;
   }

   void a(int var1) {
      this.y = var1;
   }

   int d() {
      return this.z;
   }

   void b(int var1) {
      this.z = var1;
   }

   int e() {
      return this.A;
   }

   void c(int var1) {
      this.A = var1;
   }

   int f() {
      return this.B;
   }

   void d(int var1) {
      this.B = var1;
   }

   int g() {
      return this.j.getLeft();
   }

   int h() {
      return this.j.getTop();
   }

   int a(int var1, int var2, int var3, int var4) {
      return this.j.d(var1, var2, var3, var4);
   }

   int b(int var1, int var2, int var3, int var4) {
      return this.j.c(var1, var2, var3, var4);
   }

   float i() {
      return this.C;
   }

   void a(float var1) {
      this.C = var1;
   }

   float j() {
      return this.D;
   }

   void b(float var1) {
      this.D = var1;
   }

   zanz k() {
      return this.X;
   }

   void a(zanz var1) {
      this.X = var1;
   }

   com.aspose.cells.b.a.b.zq l() {
      return this.Y;
   }

   void a(com.aspose.cells.b.a.b.a.ze var1) {
      this.Z = var1;
   }

   zbcy m() {
      return this.aa;
   }

   void a(zbcy var1) {
      this.aa = var1;
   }

   zbsn n() {
      return this.ab;
   }

   void a(zbsn var1) {
      this.ab = var1;
   }

   public zbkr(zbly var1, int var2) {
      this.a = true;
      this.I = 0;
      this.J = null;
      this.K = null;
      this.L = zbum.a;
      this.M = Color.getBlack();
      this.N = 7;
      this.O = 9;
      this.P = 0;
      this.Q = 2;
      this.S = true;
      this.T = 0.0F;
      this.U = 0.0F;
      this.V = 0.0F;
      this.W = 0.0F;
      this.X = null;
      this.Y = new com.aspose.cells.b.a.b.zq(0.0F, 0.0F, 0.0F, 0.0F);
      this.Z = null;
      this.aa = null;
      this.ab = null;
      this.ac = "";
      this.ad = new ArrayList();
      this.ae = com.aspose.cells.b.a.b.zo.a();
      this.af = 0;
      this.ag = new ArrayList();
      this.ah = new ArrayList();
      this.ai = "";
      this.aj = 0;
      this.am = 0.0D;
      this.b = 1;
      this.c = new ArrayList();
      this.e = false;
      this.f = false;
      this.g = false;
      this.h = false;
      this.i = null;
      this.j = null;
      this.k = com.aspose.cells.b.a.b.zo.a();
      this.l = com.aspose.cells.b.a.b.zo.a();
      this.aq = new com.aspose.cells.b.a.b.zq(0.0F, 0.0F, 0.0F, 0.0F);
      this.ar = new com.aspose.cells.b.a.b.zq(0.0F, 0.0F, 0.0F, 0.0F);
      this.as = false;
      this.m = null;
      this.aw = false;
      this.n = false;
      this.o = 0;
      this.p = true;
      this.q = false;
      this.r = var1;
      this.s = var2;
      this.as = false;
      this.J = new zvn(this);
      this.K = new zalz(this);
   }

   public zbkr(int var1) {
      this((zbly)null, var1);
   }

   public int o() {
      return this.s;
   }

   public int p() {
      return this.t;
   }

   public void e(int var1) {
      this.t = var1;
   }

   public float q() {
      return this.E;
   }

   public void c(float var1) {
      this.E = var1;
   }

   public float r() {
      return this.F;
   }

   public void d(float var1) {
      this.F = var1;
   }

   public float s() {
      return this.G;
   }

   public void e(float var1) {
      this.G = var1;
   }

   public float t() {
      return this.H;
   }

   public void f(float var1) {
      this.H = var1;
   }

   public int u() {
      return this.I;
   }

   public void f(int var1) {
      if (var1 < 0) {
         this.I = 360 + var1 % 360;
      } else if (var1 > 360) {
         this.I = var1 % 360;
      } else {
         this.I = var1;
      }

   }

   public com.aspose.cells.b.a.b.zq v() {
      return new com.aspose.cells.b.a.b.zq(this.G, this.H, this.E, this.F);
   }

   public zvn w() {
      return this.J;
   }

   public zalz x() {
      return this.K;
   }

   public com.aspose.cells.b.a.b.zg y() {
      return this.L;
   }

   public void a(com.aspose.cells.b.a.b.zg var1) {
      this.L = var1;
   }

   public Color z() {
      return this.M;
   }

   public void a(Color var1) {
      this.M = var1;
   }

   public int A() {
      return this.N;
   }

   public void g(int var1) {
      this.N = var1;
   }

   public int B() {
      return this.O;
   }

   public void h(int var1) {
      this.O = var1;
   }

   public int C() {
      return this.P;
   }

   public void i(int var1) {
      this.P = var1;
   }

   public int D() {
      return this.Q;
   }

   public void j(int var1) {
      this.Q = var1;
   }

   double E() {
      return this.am;
   }

   void a(double var1) {
      this.am = var1;
   }

   public int F() {
      return this.R;
   }

   public void k(int var1) {
      this.R = var1;
   }

   public String G() {
      return this.ac;
   }

   public void a(String var1) {
      this.ac = var1;
   }

   public ArrayList H() {
      return this.ad;
   }

   public int I() {
      return this.af;
   }

   public void l(int var1) {
      this.af = var1;
   }

   public List J() {
      return this.ag;
   }

   public int K() {
      return this.aj;
   }

   public List L() {
      return this.ah;
   }

   public void a(List var1) {
      this.ah = var1;
   }

   public String M() {
      return this.ai;
   }

   public void b(String var1) {
      this.ai = var1;
   }

   public int N() {
      return this.an;
   }

   public void m(int var1) {
      this.an = var1;
   }

   public int O() {
      return this.ao;
   }

   public void n(int var1) {
      this.ao = var1;
   }

   public int P() {
      return this.ap;
   }

   public void o(int var1) {
      this.ap = var1;
   }

   public boolean Q() {
      return this.ak;
   }

   public void b(boolean var1) {
      this.ak = var1;
   }

   public boolean R() {
      return this.al;
   }

   public void c(boolean var1) {
      this.al = var1;
   }

   com.aspose.cells.b.a.b.zq S() {
      if (!this.as) {
         this.Z();
      }

      return this.ar;
   }

   com.aspose.cells.b.a.b.zq T() {
      if (!this.as) {
         this.ab();
      }

      return this.aq;
   }

   private String d(boolean var1) {
      StringBuilder var2 = new StringBuilder(this.j.M().getName());
      Shape var3 = this.j;

      ArrayList var4;
      Shape var5;
      for(var4 = new ArrayList(); var3.S(); var3 = var5) {
         var5 = (Shape)var3.F();
         com.aspose.cells.b.a.a.ze.a(var4, (Object)var5.getName());
      }

      for(int var6 = var4.size() - 1; var6 >= 0; --var6) {
         var2.append(var4.get(var6));
      }

      if (var1) {
         var2.append(this.j.getName());
      }

      return com.aspose.cells.b.a.zr.a(var2);
   }

   public void a(zn var1, boolean var2) throws Exception {
      if (!this.as) {
         this.Z();
      }

      if (var2) {
         this.aa();
      }

      if (this.o() == 0 && this.j.n != null && this.j.n instanceof ShapeCollection) {
         var1.d();
      } else if (!(this.j.n instanceof ShapeCollection)) {
         com.aspose.cells.b.a.b.a.zi var3 = (com.aspose.cells.b.a.b.a.zi)at.get(this.d(false));
         if (var3 != null) {
            var1.b(var3.b());
         } else {
            var1.d();
         }
      }

      switch(this.o()) {
      case 0:
         if (this.j.getRotationAngle() <= 0.0D && !this.j.isFlippedHorizontally() && !this.j.isFlippedVertically()) {
            if (at.get(this.d(true)) == null) {
               at.put(this.d(true), var1.k());
            }
         } else {
            com.aspose.cells.b.a.b.zq var19 = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h(), this.v().i());
            if (this.j.n instanceof GroupShape && (this.j.getRotationAngle() >= 45.0D && this.j.getRotationAngle() < 135.0D || this.j.getRotationAngle() >= 225.0D && this.j.getRotationAngle() < 315.0D)) {
               var19 = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().i(), this.v().h());
            }

            com.aspose.cells.b.a.b.a.zi var4 = null;
            float var5 = 1.0F;
            float var6 = 1.0F;
            if (this.j.isFlippedHorizontally()) {
               var5 = -1.0F;
            }

            if (this.j.isFlippedVertically()) {
               var6 = -1.0F;
            }

            var4 = new com.aspose.cells.b.a.b.a.zi(var5, 0.0F, 0.0F, var6, 0.0F, 0.0F);
            if (this.j.isFlippedHorizontally()) {
               if ((this.j.getRotationAngle() < 45.0D || this.j.getRotationAngle() >= 135.0D) && (this.j.getRotationAngle() < 225.0D || this.j.getRotationAngle() >= 315.0D)) {
                  var4.b(-zbuk.a((float)this.j.getWidth()), 0.0F);
               } else if (this.j.getWidth() > this.j.getHeight()) {
                  var4.b(-zbuk.a((float)this.j.getWidth()), 0.0F);
               } else {
                  var4.b(-zbuk.a((float)this.j.getHeight()), 0.0F);
               }
            }

            if (this.j.isFlippedVertically()) {
               if ((this.j.getRotationAngle() < 45.0D || this.j.getRotationAngle() >= 135.0D) && (this.j.getRotationAngle() < 225.0D || this.j.getRotationAngle() >= 315.0D)) {
                  var4.b(0.0F, -zbuk.a((float)this.j.getHeight()));
               } else if (this.j.getWidth() > this.j.getHeight()) {
                  var4.b(0.0F, -zbuk.a((float)this.j.getHeight()));
               } else {
                  var4.b(0.0F, -zbuk.a((float)this.j.getWidth()));
               }
            }

            com.aspose.cells.b.a.b.a.zi var7 = new com.aspose.cells.b.a.b.a.zi();
            float var8 = var19.f() + var19.h() / 2.0F;
            float var9 = var19.g() + var19.i() / 2.0F;
            var7.a((float)this.j.getRotationAngle(), new com.aspose.cells.b.a.b.zo(zbuk.a(var8), zbuk.a(var9)));
            if (this.j instanceof GroupShape && this.j.F() instanceof ShapeCollection) {
               float var10 = (float)Math.abs(this.j.getWidth() - this.j.getHeight());
               if (this.j.getRotationAngle() >= 45.0D && this.j.getRotationAngle() < 135.0D || this.j.getRotationAngle() >= 225.0D && this.j.getRotationAngle() < 315.0D) {
                  if (this.j.getWidth() > this.j.getHeight()) {
                     if (this.j.isFlippedHorizontally() && this.j.isFlippedVertically()) {
                        var7.b(zbuk.a(var10 / 2.0F - var10), zbuk.a(-var10 / 2.0F - var10), 1);
                     } else if (this.j.isFlippedVertically()) {
                        var7.b(zbuk.a(var10 / 2.0F - var10), zbuk.a(-var10 / 2.0F), 1);
                     } else if (this.j.isFlippedHorizontally()) {
                        var7.b(zbuk.a(var10 / 2.0F), zbuk.a(-var10 / 2.0F - var10), 1);
                     } else {
                        var7.b(zbuk.a(var10 / 2.0F), zbuk.a(-var10 / 2.0F), 1);
                     }
                  } else {
                     var7.b(zbuk.a(-var10 / 2.0F), zbuk.a(var10 / 2.0F), 1);
                  }
               }
            }

            var7.a((com.aspose.cells.b.a.b.a.zi)var4, 0);
            var1.a(var7);
            if (at.get(this.d(true)) == null) {
               at.put(this.d(true), var1.k());
            }
         }

         for(int var20 = 0; var20 < this.c.size(); ++var20) {
            zbkr var21 = (zbkr)this.c.get(var20);
            if (var21.f) {
               Chart var22 = var21.i;
               com.aspose.cells.b.a.d.zh var23 = new com.aspose.cells.b.a.d.zh();

               try {
                  var22.a((com.aspose.cells.b.a.d.zm)var23, (ImageFormat)ImageFormat.getEmf());
                  if (var23.h() > 0L) {
                     com.aspose.cells.b.a.b.zj var24 = com.aspose.cells.b.a.b.zj.a((com.aspose.cells.b.a.d.zm)var23);

                     try {
                        if (var24.i() > 0 && var24.h() > 0) {
                           com.aspose.cells.b.a.b.zq var25 = new com.aspose.cells.b.a.b.zq(-1.0F, -1.0F, (float)(var24.i() + 1), (float)(var24.h() + 1));
                           com.aspose.cells.b.a.b.zq var26 = var21.v();
                           if (var26.f() <= 2.0F) {
                              var26.a(2.0F);
                           }

                           if (var26.g() <= 2.0F) {
                              var26.b(2.0F);
                           }

                           var1.a(var24, var26, var25, 2);
                        }
                     } finally {
                        if (var24 != null) {
                           var24.b();
                        }

                     }
                  }
               } finally {
                  if (var23 != null) {
                     var23.a();
                  }

               }
            } else {
               var21.a(var1, false);
            }
         }

         return;
      case 1:
         zbgk.G(var1, this);
         break;
      case 2:
         zbgk.n(var1, this);
         break;
      case 3:
         zbgk.a(var1, this);
      case 4:
      case 5:
      case 9:
      case 10:
      case 13:
      case 15:
      case 21:
      case 22:
      case 23:
      case 26:
      case 27:
      case 28:
      case 29:
      default:
         break;
      case 6:
         zbgk.o(var1, this);
         break;
      case 7:
         zbgk.d(var1, this);
         break;
      case 8:
         zbgk.i(var1, this);
         break;
      case 11:
      case 12:
         zbgk.e(var1, this);
         break;
      case 14:
         zbgk.b(var1, this);
         break;
      case 16:
         zbgk.k(var1, this);
         break;
      case 17:
         zbgk.j(var1, this);
         break;
      case 18:
         zbgk.f(var1, this);
         break;
      case 19:
         zbgk.c(var1, this);
         break;
      case 20:
         zbgk.g(var1, this);
         break;
      case 24:
         zbgk.l(var1, this);
         break;
      case 25:
         zbgk.h(var1, this);
         break;
      case 30:
         switch(this.p()) {
         case 0:
            zbgk.cb(var1, this);
            break;
         case 1:
            zbgk.ay(var1, this);
            break;
         case 2:
            zbgk.q(var1, this);
            break;
         case 4:
            zbgk.w(var1, this);
            break;
         case 5:
            zbgk.s(var1, this);
            break;
         case 6:
            zbgk.t(var1, this);
            break;
         case 7:
            zbgk.u(var1, this);
            break;
         case 8:
            zbgk.v(var1, this);
            break;
         case 9:
            zbgk.y(var1, this);
            break;
         case 10:
            zbgk.z(var1, this);
            break;
         case 11:
            zbgk.S(var1, this);
            break;
         case 12:
            zbgk.bj(var1, this);
            break;
         case 13:
            zbgk.J(var1, this);
            break;
         case 15:
            zbgk.bd(var1, this);
            break;
         case 16:
            zbgk.P(var1, this);
            break;
         case 19:
            zbgk.W(var1, this);
            break;
         case 20:
            zbgk.G(var1, this);
            break;
         case 21:
            zbgk.V(var1, this);
            break;
         case 22:
            zbgk.Q(var1, this);
            break;
         case 23:
            zbgk.av(var1, this);
            break;
         case 32:
            zbgk.G(var1, this);
            break;
         case 33:
            zbgk.aa(var1, this);
            break;
         case 34:
            zbgk.Z(var1, this);
            break;
         case 35:
            zbgk.ab(var1, this);
            break;
         case 36:
            zbgk.ac(var1, this);
            break;
         case 37:
            zbgk.bX(var1, this);
            break;
         case 38:
            zbgk.bW(var1, this);
            break;
         case 39:
            zbgk.cf(var1, this);
         case 40:
         default:
            break;
         case 42:
            zbgk.bG(var1, this);
            break;
         case 43:
            zbgk.bI(var1, this);
            break;
         case 44:
            zbgk.bK(var1, this);
            break;
         case 45:
            zbgk.bM(var1, this);
            break;
         case 46:
            zbgk.bO(var1, this);
            break;
         case 48:
            zbgk.bF(var1, this);
            break;
         case 49:
            zbgk.bH(var1, this);
            break;
         case 50:
            zbgk.bJ(var1, this);
            break;
         case 51:
            zbgk.bL(var1, this);
            break;
         case 52:
            zbgk.bN(var1, this);
            break;
         case 53:
            zbgk.bT(var1, this);
            break;
         case 54:
            zbgk.bS(var1, this);
            break;
         case 55:
            zbgk.be(var1, this);
            break;
         case 56:
            zbgk.x(var1, this);
            break;
         case 57:
            zbgk.bw(var1, this);
            break;
         case 58:
            zbgk.bm(var1, this);
            break;
         case 59:
            zbgk.bp(var1, this);
            break;
         case 60:
            zbgk.br(var1, this);
            break;
         case 61:
            zbgk.H(var1, this);
            break;
         case 62:
            zbgk.bs(var1, this);
            break;
         case 63:
            zbgk.I(var1, this);
            break;
         case 64:
            zbgk.bU(var1, this);
            break;
         case 65:
            zbgk.ax(var1, this);
            break;
         case 66:
            zbgk.K(var1, this);
            break;
         case 67:
            zbgk.M(var1, this);
            break;
         case 68:
            zbgk.L(var1, this);
            break;
         case 69:
            zbgk.N(var1, this);
            break;
         case 70:
            zbgk.O(var1, this);
            break;
         case 71:
            zbgk.aR(var1, this);
            break;
         case 72:
            zbgk.aS(var1, this);
            break;
         case 73:
            zbgk.at(var1, this);
            break;
         case 74:
            zbgk.as(var1, this);
            break;
         case 76:
            zbgk.aT(var1, this);
            break;
         case 77:
            zbgk.by(var1, this);
            break;
         case 78:
            zbgk.bf(var1, this);
            break;
         case 79:
            zbgk.bz(var1, this);
            break;
         case 80:
            zbgk.bg(var1, this);
            break;
         case 81:
            zbgk.bA(var1, this);
            break;
         case 83:
            zbgk.bB(var1, this);
            break;
         case 84:
            zbgk.au(var1, this);
            break;
         case 85:
            zbgk.cc(var1, this);
            break;
         case 86:
            zbgk.cd(var1, this);
            break;
         case 87:
            zbgk.ak(var1, this);
            break;
         case 88:
            zbgk.al(var1, this);
            break;
         case 89:
            zbgk.aZ(var1, this);
            break;
         case 90:
            zbgk.ba(var1, this);
            break;
         case 91:
            zbgk.aX(var1, this);
            break;
         case 92:
            zbgk.bq(var1, this);
            break;
         case 93:
            zbgk.bC(var1, this);
            break;
         case 94:
            zbgk.bc(var1, this);
            break;
         case 95:
            zbgk.aw(var1, this);
            break;
         case 96:
            zbgk.p(var1, this);
            break;
         case 97:
            zbgk.bQ(var1, this);
            break;
         case 98:
            zbgk.bR(var1, this);
            break;
         case 99:
            zbgk.ce(var1, this);
            break;
         case 101:
            zbgk.aY(var1, this);
            break;
         case 102:
            zbgk.bb(var1, this);
            break;
         case 103:
            zbgk.ca(var1, this);
            break;
         case 104:
            zbgk.bY(var1, this);
            break;
         case 105:
            zbgk.bZ(var1, this);
            break;
         case 106:
            zbgk.bP(var1, this);
            break;
         case 109:
            zbgk.ay(var1, this);
            break;
         case 110:
            zbgk.w(var1, this);
            break;
         case 111:
            zbgk.bv(var1, this);
            break;
         case 112:
            zbgk.az(var1, this);
            break;
         case 113:
            zbgk.aA(var1, this);
            break;
         case 114:
            zbgk.bt(var1, this);
            break;
         case 115:
            zbgk.bu(var1, this);
            break;
         case 116:
            zbgk.aB(var1, this);
            break;
         case 117:
            zbgk.y(var1, this);
            break;
         case 118:
            zbgk.aC(var1, this);
            break;
         case 119:
            zbgk.aD(var1, this);
            break;
         case 120:
            zbgk.a(var1, this);
            break;
         case 121:
            zbgk.aF(var1, this);
            break;
         case 122:
            zbgk.aG(var1, this);
            break;
         case 123:
            zbgk.aH(var1, this);
            break;
         case 124:
            zbgk.R(var1, this);
            break;
         case 125:
            zbgk.aI(var1, this);
            break;
         case 126:
            zbgk.aJ(var1, this);
            break;
         case 127:
            zbgk.s(var1, this);
            break;
         case 128:
            zbgk.aK(var1, this);
            break;
         case 130:
            zbgk.aL(var1, this);
            break;
         case 131:
            zbgk.aN(var1, this);
            break;
         case 132:
            zbgk.aO(var1, this);
            break;
         case 133:
            zbgk.aP(var1, this);
            break;
         case 134:
            zbgk.aQ(var1, this);
            break;
         case 135:
            zbgk.aM(var1, this);
            break;
         case 136:
            zbgk.m(var1, this);
            break;
         case 176:
            zbgk.q(var1, this);
            break;
         case 177:
            zbgk.aE(var1, this);
            break;
         case 178:
            zbgk.bE(var1, this);
            break;
         case 180:
            zbgk.bD(var1, this);
            break;
         case 182:
            zbgk.aW(var1, this);
            break;
         case 183:
            zbgk.aV(var1, this);
            break;
         case 184:
            zbgk.bh(var1, this);
            break;
         case 185:
            zbgk.ad(var1, this);
            break;
         case 186:
            zbgk.ae(var1, this);
            break;
         case 187:
            zbgk.bi(var1, this);
            break;
         case 188:
            zbgk.bV(var1, this);
            break;
         case 2049:
            zbgk.am(var1, this);
            break;
         case 2050:
            zbgk.an(var1, this);
            break;
         case 2051:
            zbgk.ao(var1, this);
            break;
         case 2052:
            zbgk.bk(var1, this);
            break;
         case 2053:
            zbgk.bl(var1, this);
            break;
         case 2054:
            zbgk.bn(var1, this);
            break;
         case 2055:
            zbgk.bo(var1, this);
            break;
         case 2056:
            zbgk.D(var1, this);
            break;
         case 2057:
            zbgk.E(var1, this);
            break;
         case 2058:
            zbgk.F(var1, this);
            break;
         case 2059:
            zbgk.C(var1, this);
            break;
         case 2060:
            zbgk.r(var1, this);
            break;
         case 2061:
            zbgk.A(var1, this);
            break;
         case 2062:
            zbgk.B(var1, this);
            break;
         case 2063:
            zbgk.ar(var1, this);
            break;
         case 2064:
            zbgk.ap(var1, this);
            break;
         case 2065:
            zbgk.U(var1, this);
            break;
         case 2066:
            zbgk.Y(var1, this);
            break;
         case 2067:
            zbgk.X(var1, this);
            break;
         case 2068:
            zbgk.T(var1, this);
            break;
         case 2069:
            zbgk.aq(var1, this);
            break;
         case 2070:
            zbgk.aU(var1, this);
            break;
         case 2071:
            zbgk.af(var1, this);
            break;
         case 2072:
            zbgk.ag(var1, this);
            break;
         case 2073:
            zbgk.ah(var1, this);
            break;
         case 2074:
            zbgk.aj(var1, this);
            break;
         case 2075:
            zbgk.ai(var1, this);
            break;
         case 2076:
            zbgk.bx(var1, this);
         }
      }

   }

   private void Z() {
      this.ar = this.v();
      float var10;
      float var11;
      float var12;
      switch(this.o()) {
      case 0:
         this.ar = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h() + this.K.f(), this.v().i() + this.K.f());
         break;
      case 1:
         this.ar = zbum.a(this);
         break;
      case 2:
         if (this.u() != 0 && this.u() != 180 && !this.Y()) {
            this.ar = zbul.a(this.v(), this.u());
         }

         if (!this.x().a()) {
            this.ar.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
         }
         break;
      case 3:
         if (!this.x().a()) {
            if (this.K.f() <= 1.0F) {
               this.ar.a(this.K.f(), this.K.f());
            } else {
               this.ar.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            }
         }
      case 4:
      case 5:
      case 9:
      case 10:
      case 13:
      case 14:
      case 15:
      case 16:
      case 17:
      case 21:
      case 22:
      case 23:
      case 26:
      case 27:
      case 28:
      case 29:
      default:
         break;
      case 6:
         if (!this.x().a()) {
            if (this.K.f() <= 1.0F) {
               this.ar.a(this.K.f(), this.K.f());
            } else {
               this.ar.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            }
         }
         break;
      case 7:
      case 18:
      case 20:
         this.ar.a(0.5F, 0.5F);
         break;
      case 8:
         if (this.u() != 0 && this.u() != 180 && !this.Y()) {
            this.ar = zbul.a(this.v(), this.u());
         }

         if (!this.x().a()) {
            this.ar.a(this.K.f(), this.K.f());
         }
         break;
      case 11:
      case 12:
         float var1 = 0.0F;
         if (!this.x().a()) {
            var1 = this.K.f();
            this.ar.a(this.K.f(), this.K.f());
         }

         if (this.G() != null && !"".equals(this.G())) {
            var12 = 5.0F;
            var10 = 10.0F;
            var11 = this.q() + 1.0F;
            com.aspose.cells.b.a.b.zt var5 = this.W().a("a", this.y());
            if (var11 < var5.b()) {
               var11 = var5.b();
            }

            float var6 = this.r() - 10.0F;
            if (var6 <= var5.c()) {
               var6 = var5.c();
            }

            com.aspose.cells.b.a.b.zt var7 = new com.aspose.cells.b.a.b.zt(var11, var6);
            com.aspose.cells.b.a.b.zt var8 = this.W().a(this.G(), this.y(), var7);
            if (var8.b() + var12 + var10 + 1.0F > this.q() + var1) {
               float var9 = var8.b() + var12 + var10 + 1.0F - (this.q() + var1);
               this.ar.c(this.ar.h() + var9);
            }
         }
         break;
      case 19:
         if (this.G() != null && !"".equals(this.G())) {
            var12 = 8.0F;
            var10 = this.W().a(this.G(), this.y()).b();
            if (var10 + var12 > this.q()) {
               this.ar.c(this.ar.h() + (var10 + var12 - this.q()));
            }

            var11 = (float)(this.y().d() * 1);
            this.ar.b(this.ar.g() - var11 / 2.0F);
            this.ar.d(this.ar.i() + var11 / 2.0F);
         }

         this.ar.a(0.5F, 0.5F);
         break;
      case 24:
         if (!this.x().a()) {
            this.ar.a(this.K.f(), this.K.f());
         }
         break;
      case 25:
         this.ar = zbum.b(this, false);
         break;
      case 30:
         com.aspose.cells.b.a.b.zq var2;
         switch(this.p()) {
         case 0:
            var2 = this.ar;
            if (this.q() == 0.0F) {
               var2.c(var2.h() + 1.0F);
               ++this.E;
            }

            if (this.r() == 0.0F) {
               var2.d(var2.i() + 1.0F);
               ++this.F;
            }

            this.ar.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            if (this.K.f() <= 1.0F) {
               this.ar.b(this.ar.g() + this.K.f() / 2.0F);
            }

            var2 = this.ar;
            break;
         case 2:
            var2 = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h(), this.v().i());
            if (this.u() > 0 && this.u() != 180) {
               var2 = zbul.a(this.v(), this.u());
            }

            var2.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            break;
         case 13:
            var2 = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h(), this.v().i());
            if (this.u() > 0 && this.u() != 180) {
               var2 = zbum.a(this.v(), this.m, this.b, this.u());
            }

            var2.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            break;
         case 20:
            var2 = zbum.a(this);
            if (this.e && (this.u() == 90 || this.u() == 270)) {
               var10 = var2.i();
               var11 = var2.h();
               var2.c(var10);
               var2.d(var11);
            }
            break;
         case 32:
            var2 = zbum.a(this);
            if (this.e && this.x().f() <= 1.0F && (this.u() == 90 || this.u() == 270)) {
               var10 = var2.i();
               var11 = var2.h();
               var2.c(var10);
               var2.d(var11);
            }
            break;
         case 33:
         case 36:
            var2 = this.ar;
            if (this.q() <= 1.0F) {
               var2.c(var2.h() + 2.0F);
               this.E += 2.0F;
            }

            if (this.r() <= 1.0F) {
               var2.d(var2.i() + 2.0F);
               this.F += 2.0F;
            }

            if (this.u() > 0) {
               var2 = zbum.d(this);
               this.Y = var2;
            } else {
               var2 = zbum.m(this);
               this.Y = var2;
            }
            break;
         case 34:
            var2 = this.ar;
            if (this.q() <= 1.0F) {
               var2.c(var2.h() + 2.0F);
               this.E += 2.0F;
            }

            if (this.r() <= 1.0F) {
               var2.d(var2.i() + 2.0F);
               this.F += 2.0F;
            }

            if (this.u() > 0 && this.u() != 180) {
               var2 = zbum.d(this);
               this.Y = var2;
               break;
            }

            var2 = zbum.m(this);
            this.Y = var2;
            var2 = new com.aspose.cells.b.a.b.zq(0.0F, 0.0F, var2.h(), var2.i() + 5.0F);
            break;
         case 35:
            var2 = this.ar;
            if (this.q() <= 1.0F) {
               var2.c(var2.h() + 2.0F);
               this.E += 2.0F;
            }

            if (this.r() <= 1.0F) {
               var2.d(var2.i() + 2.0F);
               this.F += 2.0F;
            }

            if (this.u() > 0) {
               var2 = zbum.e(this);
               this.Y = var2;
            } else {
               var2 = zbum.n(this);
               this.Y = var2;
            }
            break;
         case 37:
         case 38:
         case 39:
         case 40:
            var2 = this.ar;
            if (this.q() <= 1.0F) {
               var2.c(var2.h() + 2.0F);
               this.E += 2.0F;
            }

            if (this.r() <= 1.0F) {
               var2.d(var2.i() + 2.0F);
               this.F += 2.0F;
            }

            if (this.u() > 0 && this.u() != 180) {
               var2 = zbum.d(this);
               this.Y = var2;
               break;
            }

            var2 = zbum.b(this);
            this.Y = var2;
            break;
         case 42:
         case 48:
            ArrayList var4 = zbum.g(this);
            var2 = (com.aspose.cells.b.a.b.zq)var4.get(0);
            break;
         case 43:
         case 49:
            var2 = zbum.h(this);
            break;
         case 44:
         case 50:
            var2 = zbum.i(this);
            break;
         case 45:
         case 51:
            var2 = zbum.j(this);
            break;
         case 46:
         case 52:
            var2 = zbum.k(this);
            break;
         case 61:
         case 62:
         case 63:
            var2 = zbum.a(this, false);
            break;
         case 87:
            var2 = this.v();
            if (this.u() != 0 && this.u() != 180) {
               var2 = zbul.a(this.v(), this.u());
            }
            break;
         case 106:
            var2 = zbum.l(this);
            break;
         case 178:
         case 180:
            ArrayList var3 = zbum.f(this);
            var2 = (com.aspose.cells.b.a.b.zq)var3.get(0);
            break;
         case 2061:
            var2 = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h(), this.v().i());
            if (this.u() > 0 && this.u() != 180) {
               var2 = zbul.a(this.v(), this.u());
            }

            var2.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            break;
         default:
            if (this.K.f() <= 1.0F) {
               this.ar.a(this.K.f(), this.K.f());
               var2 = this.ar;
            } else {
               this.ar.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
               var2 = this.ar;
            }
         }

         this.ar = var2;
      }

      this.as = true;
   }

   private void aa() {
      float var1 = this.s() - this.S().f();
      float var2 = this.t() - this.S().g();
      this.e(this.s() + var1);
      this.f(this.t() + var2);
      this.ar.a(this.ar.f() + var1);
      this.ar.b(this.ar.g() + var2);
   }

   public void U() {
      if (!this.as) {
         this.ab();
      }

   }

   public zn V() {
      return this.au;
   }

   public void a(zn var1) {
      this.au = var1;
   }

   public com.aspose.cells.b.a.b.zi W() {
      if (this.av == null) {
         com.aspose.cells.b.a.b.za var1 = new com.aspose.cells.b.a.b.za(1, 1);
         this.av = com.aspose.cells.b.a.b.zi.a((com.aspose.cells.b.a.b.zj)var1);
      }

      return this.av;
   }

   public void ao() throws Exception {
      this.a(this.V(), true);
   }

   boolean X() {
      if (this.p() != 20 && this.p() != 32 && this.p() != 34) {
         if (this.p() == 0) {
            this.ar.c(this.ar.h() + 1.0F);
            this.ar.d(this.ar.i() + 1.0F);
            this.c(this.q() + 1.0F);
            this.d(this.r() + 1.0F);
         }

         if (this.S().h() <= 0.0F || this.S().i() <= 0.0F) {
            return false;
         }
      }

      return true;
   }

   private void ab() {
      this.aq = this.v();
      float var10;
      float var11;
      float var13;
      switch(this.o()) {
      case 0:
         this.aq = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h() + this.K.f(), this.v().i() + this.K.f());
         break;
      case 1:
         this.aq = zbum.a(this);
      case 2:
      case 4:
      case 5:
      case 9:
      case 10:
      case 13:
      case 14:
      case 15:
      case 16:
      case 17:
      case 21:
      case 22:
      case 23:
      case 26:
      case 27:
      case 28:
      case 29:
      default:
         break;
      case 3:
      case 6:
         if (!this.x().a()) {
            if (this.K.f() <= 1.0F) {
               this.aq.a(this.K.f(), this.K.f());
            } else {
               this.aq.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            }
         }
         break;
      case 7:
      case 18:
      case 20:
         this.aq.a(0.5F, 0.5F);
         break;
      case 8:
      case 24:
         if (!this.x().a()) {
            this.aq.a(this.K.f(), this.K.f());
         }
         break;
      case 11:
      case 12:
         float var1 = 0.0F;
         if (!this.x().a()) {
            var1 = this.K.f();
            this.aq.a(this.K.f(), this.K.f());
         }

         if (this.G() != null && !"".equals(this.G())) {
            var13 = 5.0F;
            var10 = 10.0F;
            var11 = this.q() + 1.0F;
            com.aspose.cells.b.a.b.zt var12 = this.W().a("a", this.y());
            if (var11 < var12.b()) {
               var11 = var12.b();
            }

            float var6 = this.r() - 10.0F;
            if (var6 <= var12.c()) {
               var6 = var12.c();
            }

            com.aspose.cells.b.a.b.zt var7 = new com.aspose.cells.b.a.b.zt(var11, var6);
            com.aspose.cells.b.a.b.zt var8 = this.W().a(this.G(), this.y(), var7);
            if (var8.b() + var13 + var10 + 1.0F > this.q() + var1) {
               float var9 = var8.b() + var13 + var10 + 1.0F - (this.q() + var1);
               this.aq.c(this.aq.h() + var9);
            }
         }
         break;
      case 19:
         if (this.G() != null && !"".equals(this.G())) {
            var13 = 8.0F;
            var10 = this.W().a(this.G(), this.y()).b();
            if (var10 + var13 > this.q()) {
               this.aq.c(this.aq.h() + (var10 + var13 - this.q()));
            }

            var11 = (float)(this.y().d() * 1);
            this.aq.b(this.aq.g() - var11 / 2.0F);
            this.aq.d(this.aq.i() + var11 / 2.0F);
         }

         this.aq.a(0.5F, 0.5F);
         break;
      case 25:
         this.aq = zbum.b(this, true);
         break;
      case 30:
         com.aspose.cells.b.a.b.zq var2;
         switch(this.p()) {
         case 0:
            var2 = this.aq;
            if (this.q() == 0.0F) {
               var2.c(var2.h() + 1.0F);
               ++this.E;
            }

            if (this.r() == 0.0F) {
               var2.d(var2.i() + 1.0F);
               ++this.F;
            }

            if (this.K.f() > 1.0F || var2.h() == 1.0F || var2.i() == 1.0F) {
               this.aq.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            }

            var2 = this.aq;
            break;
         case 2:
            var2 = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h(), this.v().i());
            if (this.u() > 0 && this.u() != 180) {
               var2 = zbul.a(this.v(), this.u());
            }

            var2.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            break;
         case 13:
            var2 = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h(), this.v().i());
            if (this.u() > 0 && this.u() != 180) {
               var2 = zbum.a(this.v(), this.m, this.b, this.u());
            }

            var2.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            break;
         case 20:
            var2 = zbum.a(this);
            if (this.e && (this.u() == 90 || this.u() == 270)) {
               var10 = var2.i();
               var11 = var2.h();
               var2.c(var10);
               var2.d(var11);
            }
            break;
         case 32:
            var2 = zbum.a(this);
            if (this.e && (this.u() == 90 || this.u() == 270)) {
               var10 = var2.i();
               var11 = var2.h();
               var2.c(var10);
               var2.d(var11);
            }
            break;
         case 33:
         case 35:
         case 36:
            var2 = this.aq;
            if (this.q() <= 1.0F) {
               var2.c(var2.h() + 2.0F);
               this.E += 2.0F;
            }

            if (this.r() <= 1.0F) {
               var2.d(var2.i() + 2.0F);
               this.F += 2.0F;
            }

            var2 = zbum.c(this);
            break;
         case 34:
            var2 = this.ar;
            if (this.q() <= 1.0F) {
               var2.c(var2.h() + 2.0F);
               this.E += 2.0F;
            }

            if (this.r() <= 1.0F) {
               var2.d(var2.i() + 2.0F);
               this.F += 2.0F;
            }

            if (this.u() > 0 && this.u() != 180) {
               var2 = zbum.d(this);
               this.Y = var2;
               break;
            }

            var2 = zbum.m(this);
            this.Y = var2;
            var2 = new com.aspose.cells.b.a.b.zq(this.s(), this.t(), var2.h(), var2.i() + 5.0F);
            break;
         case 37:
         case 38:
         case 39:
         case 40:
            var2 = this.aq;
            if (this.q() <= 1.0F) {
               var2.c(var2.h() + 2.0F);
               this.E += 2.0F;
            }

            if (this.r() <= 1.0F) {
               var2.d(var2.i() + 2.0F);
               this.F += 2.0F;
            }

            var2 = zbum.c(this);
            break;
         case 42:
         case 48:
            ArrayList var4 = zbum.g(this);
            var2 = (com.aspose.cells.b.a.b.zq)var4.get(0);
            var2.a(var2.f() + (Float)var4.get(1));
            var2.b(var2.g() + (Float)var4.get(2));
            var2.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            break;
         case 43:
         case 49:
            var2 = zbum.h(this);
            break;
         case 44:
         case 50:
            var2 = zbum.i(this);
            float var5 = var2.h() - this.v().h();
            var2.a(var2.f() - var5);
            break;
         case 45:
         case 51:
            var2 = zbum.j(this);
            break;
         case 46:
         case 52:
            var2 = zbum.k(this);
            break;
         case 61:
         case 62:
         case 63:
            var2 = zbum.a(this, true);
            break;
         case 87:
            var2 = this.v();
            if (this.u() != 0 && this.u() != 180) {
               var2 = zbul.a(this.v(), this.u());
            }
            break;
         case 106:
            var2 = zbum.l(this);
            break;
         case 178:
         case 180:
            ArrayList var3 = zbum.f(this);
            var2 = (com.aspose.cells.b.a.b.zq)var3.get(0);
            var2.a(var2.f() + (Float)var3.get(1));
            var2.b(var2.g() + (Float)var3.get(2));
            var2.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            break;
         case 2061:
            var2 = new com.aspose.cells.b.a.b.zq(this.v().f(), this.v().g(), this.v().h(), this.v().i());
            if (this.u() > 0 && this.u() != 180) {
               var2 = zbul.a(this.v(), this.u());
            }

            var2.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
            break;
         default:
            if (this.K.f() <= 1.0F) {
               this.aq.a(this.K.f(), this.K.f());
               var2 = this.aq;
            } else {
               this.aq.a(this.K.f() / 2.0F, this.K.f() / 2.0F);
               var2 = this.aq;
            }
         }

         this.aq = var2;
         if (this.p() == 20 || this.p() == 32) {
            if (this.F <= 1.0F) {
               this.aq = var2;
            }

            if (this.E <= 1.0F) {
               this.aq = var2;
            }
         }
      }

      this.as = true;
   }

   public boolean Y() {
      return this.aw;
   }

   public void j(boolean var1) {
      this.aw = var1;
   }
}
